package com.usian.search.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;
import com.usian.model.search.dtos.UserSearchDto;
import com.usian.model.search.pojos.ApUserSearch;
import com.usian.search.mapper.ApUserSearchMapper;
import com.usian.search.service.ApUserSearchService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;

@Service
@Log4j2
public class ApUserSearchServiceImpl extends ServiceImpl<ApUserSearchMapper, ApUserSearch> implements ApUserSearchService {


    @Override
    public ResponseResult findUserSearch(UserSearchDto dto) {

        //参数检查
        if (dto.getPageSize() > 50){

            return ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
        }

        
    }

    @Override
    public ResponseResult delUserSearch(UserSearchDto dto) {
        return null;
    }
}
